package com.java1412.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * SpringBoot支持jsp功能的实现
 * @author java1412
 * @create 2021-05-13 12:28
 */
@Controller
public class JspController {
    @RequestMapping(value = "/index")
    public String index(Model model) {
        model.addAttribute("msg", "SpringBoot中使用JSP功能!");
        // 要跳转到的页面的视图名称
        return "index";
    }
}
